import Layout from '../components/layout/Index.vue'

let routes = [
    // {
    //     path: '/Login',
    //     meta: {
    //         title: '登录',
    //     },
    //     component: () => import('../views/Login.vue')
    // },





    {
        path: '/',
        redirect: '/HomeManagement',
        name: '后台管理',
        meta: {
            title: '后台管理',
            icon: 'el-icon-notebook-1',
            hidden: true,
        },
        component: Layout,
        children: [
            {
                path: 'HomeManagement',
                name:'首页管理',
                meta: {
                    title: '首页管理',
                    icon: 'el-icon-s-order',
                },
                component: () => import('../views/Home.vue'),

            },

            {
                path: 'ProductManagement',
                name:'产品管理',
                meta: {
                    title: '产品管理',
                    icon: 'el-icon-s-finance',
                },
                component: () => import('../views/management/ProductManagement.vue'),


                children: [{
                    path: 'ClassificationManagement',
                    name:'分类管理',
                    meta: {
                        title: '分类管理',
                        icon: 'el-icon-mobile',

                    },
                    component: () => import('../views/productManagement/ClassificationManagement.vue')
                },



                {
                    path: 'ProductStatistics',
                    name:'产品统计',
                    meta: {
                        title: '产品统计',
                        icon: 'el-icon-s-data',

                    },
                    component: () => import('../views/productManagement/ProductStatistics.vue')
                },


                {
                    path: 'CommodityManagement',
                    name:'商品管理',
                    meta: {
                        title: '商品管理',
                        icon: 'el-icon-s-shop',

                    },
                    component: () => import('../views/productManagement/commodityManagement/Commodity.vue'),
                   
                },

                ]

            },

            {
                path: 'TransactionManagement',
                name:'交易管理',
                meta: {
                    title: '交易管理',
                    icon: 'el-icon-s-claim',
                },
                component: () => import('../views/management/TransactionManagement.vue'),
                children: [{
                    path: 'OrderList',
                    name:'订单列表',
                    meta: {
                        title: '订单列表',
                        icon: 'el-icon-s-order',
                    },
                    component: () => import('../views/transactionManagement/OrderList.vue'),
                },
                ]

            },

            {
                path: 'PaymentManagement',
                name:'支付管理',
                meta: {
                    title: '支付管理',
                    icon: 'el-icon-money',
                },
                component: () => import('../views/management/PaymentManagement.vue'),
                children: [{
                    path: 'PaymentType',
                    name:'支付类型',
                    meta: {
                        title: '支付类型',
                        icon: 'el-icon-bank-card',
                    },
                    component: () => import('../views/paymentManagement/PaymentType.vue'),
                },
                {
                    path: 'PaymentSettings',
                    name:'支付设置',
                    meta: {
                        title: '支付设置',
                        icon: 'el-icon-wallet',
                    },
                    component: () => import('../views/paymentManagement/PaymentSettings.vue'),
                }
            ]

            },

            {
                path: 'SystemManagement',
                name:'系统管理',
                meta: {
                    title: '系统管理',
                    icon: 'el-icon-s-tools',
                },
                component: () => import('../views/management/SystemManagement.vue'),
                children:[
                    {
                        path: 'UserManagement',
                        name:'用户管理',
                        meta: {
                            title: '用户管理',
                            icon: 'el-icon-user-solid',
                        },
                        component: () => import('../views/management/Usermanagement.vue'),
                        children:[{
                            path: 'CustomerList',
                        name:'客户列表',
                        meta: {
                            title: '客户列表',
                            icon: 'el-icon-user',
                        },
                        component: () => import('../views/systemManagement/userManagement/CustomerList.vue'),
                        },{
                            path: 'SupplierList',
                            name:'供应商列表',
                            meta: {
                                title: '供应商列表',
                                icon: 'el-icon-files',
                            },
                            component: () => import('../views/systemManagement/userManagement/SupplierList.vue'),
                        }
                    ]
                    },
                    {
                    path: 'SystemUsre',
                    name:'管理员管理',
                    meta: {
                        title: '管理员管理',
                        icon: 'el-icon-s-custom',
                    },
                     component: () => import('../views/systemManagement/SystemUsre.vue'),
                },
          
                {
                    path: 'SystemSettings',
                    name:'网站设置',
                    meta: {
                        title: '网站设置',
                        icon: 'el-icon-s-platform',
                    },
                     component: () => import('../views/systemManagement/SystemSettings.vue'),
                }
            ]

            },

            {
                path: 'StoreManagement',
                name:'供应商管理',
                meta: {
                    title: '供应商管理',
                    icon: 'el-icon-s-grid',
                },
                component: () => import('../views/management/StoreManagement.vue'),
                children:[{
                    path: 'StoreInformation',
                    name:'供应商信息',
                    meta: {
                        title: '供应商信息',
                        icon: 'el-icon-s-goods',
                    },
                    component: () => import('../views/storeManagement/StoreInformation.vue'),
                },
                {
                    path: 'StoreCommodityManagement',
                    name:'供应商商品管理',
                    meta: {
                        title: '供应商商品管理',
                        icon: 'el-icon-s-cooperation',
                    },
                    component: () => import('../views/storeManagement/StoreCommodityManagement.vue'),

                },
                {
                    path: 'StoreCommodityAdd',
                    name:'供应商商品添加',
                    meta: {
                        title: '供应商商品添加',
                        icon: 'el-icon-circle-plus',
                    },
                    component: () => import('../views/storeManagement/StoreCommodityAdd.vue'),
                    
                },
                {
                    path: 'StoreCommodityOrderManagement',
                    name:'供应商商品订单管理',
                    meta: {
                        title: '供应商商品订单管理',
                        icon: 'el-icon-s-order',
                    },
                    component: () => import('../views/storeManagement/StoreCommodityOrderManagement.vue'),
                }
            ]

            },

            {
                path: 'AdvertisingManagement',
                name:'广告管理',
                meta: {
                    title: '广告管理',
                    icon: 'el-icon-data-board',
                },
                component: () => import('../views/management/AdvertisingManagement.vue'),
                children:[{
                    path: 'Advertising',
                    name:'广告轮播图',
                    meta: {
                        title: '广告轮播图',
                        icon: 'el-icon-data-analysis',
                    },
                    component: () => import('../views/advertisingManagement/Advertising.vue'),
                }]

            },

            {
                path: 'AuthorityManagement',
                name:'权限管理',
                meta: {
                    title: '权限管理',
                    icon: 'el-icon-lock',
                },
                component: () => import('../views/management/AuthorityManagement.vue'),
                children:[{
                    path: 'PermissionList',
                    name:'权限列表',
                    meta: {
                        title: '权限列表',
                        icon: 'el-icon-key',
                    },
                    component: () => import('../views/authorityManagement/PermissionList.vue'),
                },
                {
                    path: 'RoleList',
                    name:'角色列表',
                    meta: {
                        title: '角色列表',
                        icon: 'el-icon-view',
                    },
                    component: () => import('../views/authorityManagement/RoleList.vue'),
                }]
            },
        ]


    },

]

export default routes